package com.wwl.cms.utils.designModeTest.adapter.classadapter;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/6 16:32
 * @description:
 */
public class Phone {
    public void charging(IVoltage5V iVoltage5V){
        if (iVoltage5V.output5V()==5){
            System.out.println("电压为5V，可以充点了！！");
        }else if (iVoltage5V.output5V()>5){
            System.out.println("打压大于5V，不能充电！！");
        }
    }
}
